<template>
  <i-like theme = "two-tone" size = "20" :fill = "likeColor" />
</template>

<script setup>
//是否喜欢
import {reactive, ref} from "vue";

let isLike = ref(false)
// 用watch
const likeColor = isLike.value ? reactive(['#fff', '#FD544E']) : reactive(['#B2B2B2', '#fff'])

</script>

<style scoped>

</style>